package com.lhgray.sglhome.data.repository

import com.freightoa.foundation.net.ApiResult
import com.freightoa.foundation.net.bean.SGLResponse
import com.freightoa.foundation.presentation.repository.BaseRepository
import com.lhgray.sglhome.data.network.api.HomeServer
import com.lhgray.sglhome.domain.model.TruckingBean
import javax.inject.Inject

class TruckingRepository @Inject constructor() : BaseRepository {
    @Inject
    lateinit var homeServer: HomeServer

    suspend fun getTruckingJob(fileNo: String): ApiResult<SGLResponse<TruckingBean>> {
        return homeServer.getTruckingJob("1", fileNo)
    }

    suspend fun postTruckingJob(fileNo: TruckingBean): ApiResult<SGLResponse<String>> {
        return homeServer.postTruckingJob("1", fileNo)
    }


}